﻿<UserControl x:Class="Adalbertus.BudgetPlanner.Views.ExternalSources.ExternalSourcesView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:cal="http://www.caliburnproject.org"
             xmlns:view="clr-namespace:Adalbertus.BudgetPlanner.Views.ExternalSources"             
>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <GroupBox Grid.Column="0" ScrollViewer.VerticalScrollBarVisibility="Auto">
            <GroupBox.Header>
                <WrapPanel>
                    <Label>Oszczędności</Label>
                    <Button Content="+" ToolTip="Dodaj nowe oszczędności" cal:Message.Attach="[Event Click] = [Action AddSaving()]"/>
                </WrapPanel>
            </GroupBox.Header>
            <view:SavingsView />
        </GroupBox>
        <GroupBox Grid.Column="1" ScrollViewer.VerticalScrollBarVisibility="Auto">
            <GroupBox.Header>
                <WrapPanel>
                    <Label>Przychody</Label>
                    <Button Content="+" ToolTip="Dodaj nowe źródło przychodów" cal:Message.Attach="[Event Click] = [Action AddIncome()]"/>
                </WrapPanel>
            </GroupBox.Header>
            <view:IncomesView />
        </GroupBox>
    </Grid>
</UserControl>
